<?php /* Smarty version 2.6.25, created on 2013-02-28 10:04:52
         compiled from member/mygy_list.htm */ ?>
<script src="<?php echo $this->_tpl_vars['ROOT']; ?>
/img/quanxuan.js" type="text/javascript"></script>

<form name="form1" method="post" action="del.php?leibie=gy_all">
<INPUT name="chkAll" id="chkAll" title="全选" onClick="ChkAllClick('chkSon[]','chkAll')"  type="checkbox" />全选<br>
<?php unset($this->_sections['list']);
$this->_sections['list']['name'] = 'list';
$this->_sections['list']['loop'] = is_array($_loop=$this->_tpl_vars['lin']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['list']['show'] = true;
$this->_sections['list']['max'] = $this->_sections['list']['loop'];
$this->_sections['list']['step'] = 1;
$this->_sections['list']['start'] = $this->_sections['list']['step'] > 0 ? 0 : $this->_sections['list']['loop']-1;
if ($this->_sections['list']['show']) {
    $this->_sections['list']['total'] = $this->_sections['list']['loop'];
    if ($this->_sections['list']['total'] == 0)
        $this->_sections['list']['show'] = false;
} else
    $this->_sections['list']['total'] = 0;
if ($this->_sections['list']['show']):

            for ($this->_sections['list']['index'] = $this->_sections['list']['start'], $this->_sections['list']['iteration'] = 1;
                 $this->_sections['list']['iteration'] <= $this->_sections['list']['total'];
                 $this->_sections['list']['index'] += $this->_sections['list']['step'], $this->_sections['list']['iteration']++):
$this->_sections['list']['rownum'] = $this->_sections['list']['iteration'];
$this->_sections['list']['index_prev'] = $this->_sections['list']['index'] - $this->_sections['list']['step'];
$this->_sections['list']['index_next'] = $this->_sections['list']['index'] + $this->_sections['list']['step'];
$this->_sections['list']['first']      = ($this->_sections['list']['iteration'] == 1);
$this->_sections['list']['last']       = ($this->_sections['list']['iteration'] == $this->_sections['list']['total']);
?>
<INPUT name="chkSon[]" id="chkSon2" type="checkbox"  value='<?php echo $this->_tpl_vars['lin'][$this->_sections['list']['index']]['id']; ?>
'  onclick="ChkSonClick('chkSon[]','chkAll')" />
<a href="../../gy/detail.php?id=<?php echo $this->_tpl_vars['lin'][$this->_sections['list']['index']]['id']; ?>
"><?php echo $this->_tpl_vars['lin'][$this->_sections['list']['index']]['title']; ?>
</a>
<a href=list.php?gy_class=<?php echo $this->_tpl_vars['lin'][$this->_sections['list']['index']]['id']; ?>
><?php echo $this->_tpl_vars['lin'][$this->_sections['list']['index']]['class']; ?>
</a>
<a href=gy_edit.php?id=<?php echo $this->_tpl_vars['lin'][$this->_sections['list']['index']]['id']; ?>
>编辑</a>
<a href=del.php?leibie=gy&id=<?php echo $this->_tpl_vars['lin'][$this->_sections['list']['index']]['id']; ?>
>删除</a>
<br>
<?php endfor; endif; ?>
<input type="submit" value="删除" name="B1">

</form>